package com.androidx.p013lv.mine.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.androidx.p013lv.base.recycler.BaseRecyclerAdapter;
import com.androidx.p013lv.base.recycler.BaseRecyclerHolder;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.bean.WalletHistoryBean;

/* renamed from: com.androidx.lv.mine.adapter.ProxyDetailAdapter */
public class ProxyDetailAdapter extends BaseRecyclerAdapter<WalletHistoryBean, Holder> {
    public void MyHolder(Holder holder, int i) {
        holder.setData((WalletHistoryBean) getDataInPosition(i));
    }

    @Override // androidx.recyclerview.widget.RecyclerView.Adapter
    public Holder onCreateViewHolder(ViewGroup viewGroup, int i) {
        return new Holder(LayoutInflater.from(viewGroup.getContext()).inflate(C1207R.C1212layout.item_list_proxy_details, viewGroup, false));
    }

    /* access modifiers changed from: package-private */
    /* renamed from: com.androidx.lv.mine.adapter.ProxyDetailAdapter$Holder */
    public static class Holder extends BaseRecyclerHolder {
        TextView tv_amount;
        TextView tv_nick_name;

        Holder(View view) {
            super(view);
            this.tv_nick_name = (TextView) view.findViewById(C1207R.C1210id.tv_nick_name);
            this.tv_amount = (TextView) view.findViewById(C1207R.C1210id.tv_amount);
        }

        /* access modifiers changed from: package-private */
        public void setData(WalletHistoryBean walletHistoryBean) {
            this.tv_nick_name.setText(walletHistoryBean.getNikeName());
            TextView textView = this.tv_amount;
            textView.setText("¥" + walletHistoryBean.getAmount() + "元");
        }
    }
}
